<?php include 'admin_header_view.php'; ?>
<form id="tacpham" name="tacpham" method="post" action="<?php echo base_url(); ?>index.php/welcome/themtacpham">
    <table width="100%" border="1" align="center">
        <tr>
            <td colspan="11" align="center" valign="middle" class="title2">Quản Trị</td>
        </tr>
        <tr>
            <td width="28" align="center" valign="middle" bgcolor="#666666" style="color:#FFF">Mã tác phẩm</td>
            <td width="150" align="center" valign="middle" class="title3">Tên tác phẩm</td>
            <td width="100" align="center" valign="middle" class="title3">hình ảnh</td>
            <td width="100" align="center" valign="middle" class="title3">Mã thể loại</td>
            <td width="100" align="center" valign="middle" class="title3">Năm xuất bảng</td>
            <td width="100" align="center" valign="middle" class="title3">Nhà xuất bảng</td>
            <td width="100" align="center" valign="middle" class="title3">Số trang</td>
            <td width="300" align="center" valign="middle" class="title3">Caption</td>
            <td width="90" align="center" valign="middle" class="title3">Giá gốc</td>
            <td width="90" align="center" valign="middle" class="title3">Giá bán</td>
            <td colspan="2" align="center" valign="middle" class="title3">Control</td>
        </tr>
        <?php
      
        foreach ($rtacpham as $value) {
      
            ?>
            <tr>
                <td width="28" align="center" valign="middle" bgcolor="#666666" style="color:#FFF"> <?php echo $value['MATP']; ?> </td>
                <td width="150" align="center" valign="middle" class="title3"><?php echo $value['TENTP']; ?></td>
                <td width="100" align="center" valign="middle" class="title3"><?php echo $value['HINHANH']; ?></td>
                <td width="100" align="center" valign="middle" class="title3"><?php echo $value['MATL']; ?></td>
                <td width="100" align="center" valign="middle" class="title3"><?php echo $value['NAMXUATBAN']; ?></td>
                <td width="100" align="center" valign="middle" class="title3"><?php echo $value['MANXB']; ?></td>
                <td width="100" align="center" valign="middle" class="title3"><?php echo $value['SOTRANG']; ?></td>
                <td width="300" align="center" valign="middle" class="title3"><?php echo $value['CAPTION']; ?></td>
                <td width="90" align="center" valign="middle" class="title3"><?php echo $value['GIAGOC']; ?></td>
                <td width="90" align="center" valign="middle" class="title3"><?php echo $value['GIABAN']; ?></td>
                <td colspan="2" align="center" valign="middle" class="title3">Control</td>
            </tr>
        <?php } ?>
        <tr>
            <td width="28" align="center" valign="middle" bgcolor="#666666" style="color:#FFF"><input type="text" name ="matp" id="textbox" readonly="true"/></td>
            <td width="150" align="center" valign="middle" class="title3"><input type="text" name ="tentp" class="inputs2" /></td>
            <td width="100" align="center" valign="middle" class="title3"><input type="file" class="inputs2"name="hinhanh"/></td>
            <td width="100" align="center" valign="middle" class="title3"><select class="inputs8" name="theloai">
                    <option value="TL01"> Truyện tranh</option>  <option value="TL02"> Giáo khoa</option> <option value="TL02"> Truyện dài</option>        	</select></td>
            <td width="100" align="center" valign="middle" class="title3"><input type="text" name ="namsanxuat" class="inputs3" /></td>
            <td width="100" align="center" valign="middle" class="title3"><input type="text" name ="nhaxuatban" class="inputs3" /></td>
            <td width="100" align="center" valign="middle" class="title3"><input type="text" name ="sotrang" class="inputs3" /></td>
            <td width="300" align="center" valign="middle" class="title3"><input type="text" name ="caption" class="inputs2" /></td>
            <td width="90" align="center" valign="middle" class="title3"><input type="text" name ="giagoc" class="inputs3" /></td>
            <td width="90" align="center" valign="middle" class="title3"><input type="text" name ="giaban" class="inputs3" /></td>
            <td colspan="2" align="center" valign="middle" class="title3">Control</td>
        </tr>
        <td height="40" colspan="8" align="center" valign="middle"><input name="ok1" type="submit" class="button" id="ok1" value="Thực hiện"></td>
    </table>
</form>
<?php include 'admin_footer_view.php'; ?>